.class public Lcom/xingbook/ui/overclass/KeywordsFlow;
.super Landroid/widget/FrameLayout;

# interfaces
.implements Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;


# static fields
.field public static a:I

.field private static c:Landroid/view/animation/Interpolator;

.field private static d:Landroid/view/animation/AlphaAnimation;

.field private static e:Landroid/view/animation/AlphaAnimation;

.field private static f:Landroid/view/animation/ScaleAnimation;

.field private static g:Landroid/view/animation/ScaleAnimation;

.field private static h:Landroid/view/animation/ScaleAnimation;

.field private static i:Landroid/view/animation/ScaleAnimation;


# instance fields
.field private b:Landroid/view/View$OnClickListener;

.field private j:Ljava/util/Vector;

.field private k:I

.field private l:I

.field private m:Z

.field private n:Ljava/util/Random;

.field private o:I

.field private p:J

.field private q:J


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/16 v0, 0xa

    sput v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->a:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    invoke-direct {p0}, Lcom/xingbook/ui/overclass/KeywordsFlow;->a()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    invoke-direct {p0}, Lcom/xingbook/ui/overclass/KeywordsFlow;->a()V

    return-void
.end method

.method private a()V
    .locals 5

    const/high16 v4, 0x4000

    const/4 v3, 0x0

    const/high16 v2, 0x3f80

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->p:J

    const-wide/16 v0, 0x320

    iput-wide v0, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->q:J

    new-instance v0, Ljava/util/Random;

    invoke-direct {v0}, Ljava/util/Random;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->n:Ljava/util/Random;

    new-instance v0, Ljava/util/Vector;

    sget v1, Lcom/xingbook/ui/overclass/KeywordsFlow;->a:I

    invoke-direct {v0, v1}, Ljava/util/Vector;-><init>(I)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->j:Ljava/util/Vector;

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/KeywordsFlow;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/KeywordsFlow;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x10a0006

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadInterpolator(Landroid/content/Context;I)Landroid/view/animation/Interpolator;

    move-result-object v0

    sput-object v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->c:Landroid/view/animation/Interpolator;

    new-instance v0, Landroid/view/animation/AlphaAnimation;

    invoke-direct {v0, v3, v2}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    sput-object v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->d:Landroid/view/animation/AlphaAnimation;

    new-instance v0, Landroid/view/animation/AlphaAnimation;

    invoke-direct {v0, v2, v3}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    sput-object v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->e:Landroid/view/animation/AlphaAnimation;

    new-instance v0, Landroid/view/animation/ScaleAnimation;

    invoke-direct {v0, v4, v2, v4, v2}, Landroid/view/animation/ScaleAnimation;-><init>(FFFF)V

    sput-object v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->f:Landroid/view/animation/ScaleAnimation;

    new-instance v0, Landroid/view/animation/ScaleAnimation;

    invoke-direct {v0, v2, v4, v2, v4}, Landroid/view/animation/ScaleAnimation;-><init>(FFFF)V

    sput-object v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->g:Landroid/view/animation/ScaleAnimation;

    new-instance v0, Landroid/view/animation/ScaleAnimation;

    invoke-direct {v0, v3, v2, v3, v2}, Landroid/view/animation/ScaleAnimation;-><init>(FFFF)V

    sput-object v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->h:Landroid/view/animation/ScaleAnimation;

    new-instance v0, Landroid/view/animation/ScaleAnimation;

    invoke-direct {v0, v2, v3, v2, v3}, Landroid/view/animation/ScaleAnimation;-><init>(FFFF)V

    sput-object v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->i:Landroid/view/animation/ScaleAnimation;

    return-void
.end method

.method private a(Ljava/util/LinkedList;I)V
    .locals 5

    const/4 v4, 0x3

    const/4 v0, 0x0

    move v3, v0

    :goto_0
    if-lt v3, p2, :cond_0

    return-void

    :cond_0
    add-int/lit8 v0, v3, 0x1

    move v2, v0

    :goto_1
    if-lt v2, p2, :cond_1

    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_0

    :cond_1
    invoke-virtual {p1, v2}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [I

    aget v1, v0, v4

    invoke-virtual {p1, v3}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [I

    aget v0, v0, v4

    if-ge v1, v0, :cond_2

    invoke-virtual {p1, v3}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {p1, v2}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-virtual {p1, v3, v1}, Ljava/util/LinkedList;->set(ILjava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {p1, v2, v0}, Ljava/util/LinkedList;->set(ILjava/lang/Object;)Ljava/lang/Object;

    :cond_2
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_1
.end method

.method private a(Ljava/util/LinkedList;III)V
    .locals 15

    invoke-virtual/range {p1 .. p1}, Ljava/util/LinkedList;->size()I

    move-result v8

    move-object/from16 v0, p1

    invoke-direct {p0, v0, v8}, Lcom/xingbook/ui/overclass/KeywordsFlow;->a(Ljava/util/LinkedList;I)V

    const/4 v2, 0x0

    move v7, v2

    :goto_0
    if-lt v7, v8, :cond_0

    return-void

    :cond_0
    move-object/from16 v0, p1

    invoke-virtual {v0, v7}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, [I

    const/4 v4, 0x1

    aget v4, v3, v4

    sub-int v9, v4, p3

    invoke-static {v9}, Ljava/lang/Math;->abs(I)I

    move-result v5

    add-int/lit8 v4, v7, -0x1

    move v6, v4

    :goto_1
    if-gez v6, :cond_4

    :cond_1
    move v4, v5

    :cond_2
    :goto_2
    move/from16 v0, p4

    if-le v4, v0, :cond_3

    sub-int v4, v4, p4

    iget-object v5, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->n:Ljava/util/Random;

    invoke-virtual {v5, v4}, Ljava/util/Random;->nextInt(I)I

    move-result v5

    shr-int/lit8 v4, v4, 0x1

    invoke-static {v5, v4}, Ljava/lang/Math;->max(II)I

    move-result v4

    mul-int/2addr v4, v9

    invoke-static {v9}, Ljava/lang/Math;->abs(I)I

    move-result v5

    div-int/2addr v4, v5

    const/4 v5, 0x1

    const/4 v6, 0x1

    aget v6, v3, v6

    sub-int v4, v6, v4

    aput v4, v3, v5

    const/4 v4, 0x3

    const/4 v5, 0x1

    aget v5, v3, v5

    sub-int v5, v5, p3

    invoke-static {v5}, Ljava/lang/Math;->abs(I)I

    move-result v5

    aput v5, v3, v4

    add-int/lit8 v4, v7, 0x1

    move-object/from16 v0, p1

    invoke-direct {p0, v0, v4}, Lcom/xingbook/ui/overclass/KeywordsFlow;->a(Ljava/util/LinkedList;I)V

    :cond_3
    new-instance v4, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v5, -0x2

    const/4 v6, -0x2

    invoke-direct {v4, v5, v6}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/16 v5, 0x33

    iput v5, v4, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    const/4 v5, 0x0

    aget v5, v3, v5

    iput v5, v4, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    const/4 v5, 0x1

    aget v5, v3, v5

    iput v5, v4, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I

    invoke-virtual {p0, v2, v4}, Lcom/xingbook/ui/overclass/KeywordsFlow;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget v4, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->o:I

    move/from16 v0, p2

    move/from16 v1, p3

    invoke-virtual {p0, v3, v0, v1, v4}, Lcom/xingbook/ui/overclass/KeywordsFlow;->a([IIII)Landroid/view/animation/AnimationSet;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->startAnimation(Landroid/view/animation/Animation;)V

    add-int/lit8 v2, v7, 0x1

    move v7, v2

    goto :goto_0

    :cond_4
    move-object/from16 v0, p1

    invoke-virtual {v0, v6}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    invoke-virtual {v4}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, [I

    const/4 v10, 0x0

    aget v10, v4, v10

    const/4 v11, 0x2

    aget v11, v4, v11

    add-int/2addr v11, v10

    const/4 v12, 0x1

    aget v12, v4, v12

    sub-int v12, v12, p3

    mul-int/2addr v12, v9

    if-lez v12, :cond_5

    const/4 v12, 0x0

    aget v12, v3, v12

    const/4 v13, 0x0

    aget v13, v3, v13

    const/4 v14, 0x2

    aget v14, v3, v14

    add-int/2addr v13, v14

    invoke-direct {p0, v10, v11, v12, v13}, Lcom/xingbook/ui/overclass/KeywordsFlow;->a(IIII)Z

    move-result v10

    if-eqz v10, :cond_5

    const/4 v6, 0x1

    aget v6, v3, v6

    const/4 v10, 0x1

    aget v4, v4, v10

    sub-int v4, v6, v4

    invoke-static {v4}, Ljava/lang/Math;->abs(I)I

    move-result v4

    move/from16 v0, p4

    if-gt v4, v0, :cond_2

    if-lez v5, :cond_1

    const/4 v4, 0x0

    goto/16 :goto_2

    :cond_5
    add-int/lit8 v4, v6, -0x1

    move v6, v4

    goto/16 :goto_1
.end method

.method private a(IIII)Z
    .locals 2

    const/4 v0, 0x1

    const/4 v1, 0x0

    if-lt p3, p1, :cond_1

    if-gt p3, p2, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    if-lt p4, p1, :cond_2

    if-le p4, p2, :cond_0

    :cond_2
    if-lt p1, p3, :cond_3

    if-le p1, p4, :cond_0

    :cond_3
    if-lt p2, p3, :cond_4

    if-le p2, p4, :cond_0

    :cond_4
    move v0, v1

    goto :goto_0
.end method

.method private a(Ljava/util/Random;Ljava/util/LinkedList;Ljava/util/LinkedList;I)[I
    .locals 3

    const/4 v0, 0x4

    new-array v1, v0, [I

    const/4 v2, 0x0

    invoke-virtual {p2}, Ljava/util/LinkedList;->size()I

    move-result v0

    invoke-virtual {p1, v0}, Ljava/util/Random;->nextInt(I)I

    move-result v0

    invoke-virtual {p2, v0}, Ljava/util/LinkedList;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    aput v0, v1, v2

    const/4 v2, 0x1

    invoke-virtual {p3}, Ljava/util/LinkedList;->size()I

    move-result v0

    invoke-virtual {p1, v0}, Ljava/util/Random;->nextInt(I)I

    move-result v0

    invoke-virtual {p3, v0}, Ljava/util/LinkedList;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    aput v0, v1, v2

    return-object v1
.end method

.method private b()Z
    .locals 19

    move-object/from16 v0, p0

    iget v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->k:I

    if-lez v2, :cond_5

    move-object/from16 v0, p0

    iget v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->l:I

    if-lez v2, :cond_5

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->j:Ljava/util/Vector;

    if-eqz v2, :cond_5

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->j:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v2

    if-lez v2, :cond_5

    move-object/from16 v0, p0

    iget-boolean v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->m:Z

    if-eqz v2, :cond_5

    const/4 v2, 0x0

    move-object/from16 v0, p0

    iput-boolean v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->m:Z

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    move-object/from16 v0, p0

    iput-wide v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->p:J

    move-object/from16 v0, p0

    iget v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->k:I

    shr-int/lit8 v5, v2, 0x1

    move-object/from16 v0, p0

    iget v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->l:I

    shr-int/lit8 v6, v2, 0x1

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->j:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v7

    move-object/from16 v0, p0

    iget v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->k:I

    div-int v8, v2, v7

    move-object/from16 v0, p0

    iget v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->l:I

    div-int v9, v2, v7

    new-instance v10, Ljava/util/LinkedList;

    invoke-direct {v10}, Ljava/util/LinkedList;-><init>()V

    new-instance v11, Ljava/util/LinkedList;

    invoke-direct {v11}, Ljava/util/LinkedList;-><init>()V

    const/4 v2, 0x0

    :goto_0
    if-lt v2, v7, :cond_0

    new-instance v12, Ljava/util/LinkedList;

    invoke-direct {v12}, Ljava/util/LinkedList;-><init>()V

    new-instance v13, Ljava/util/LinkedList;

    invoke-direct {v13}, Ljava/util/LinkedList;-><init>()V

    const/4 v2, 0x0

    move v4, v2

    :goto_1
    if-lt v4, v7, :cond_1

    move-object/from16 v0, p0

    invoke-direct {v0, v12, v5, v6, v9}, Lcom/xingbook/ui/overclass/KeywordsFlow;->a(Ljava/util/LinkedList;III)V

    move-object/from16 v0, p0

    invoke-direct {v0, v13, v5, v6, v9}, Lcom/xingbook/ui/overclass/KeywordsFlow;->a(Ljava/util/LinkedList;III)V

    const/4 v2, 0x1

    :goto_2
    return v2

    :cond_0
    mul-int v3, v2, v8

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v10, v3}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    mul-int v3, v2, v9

    shr-int/lit8 v4, v9, 0x2

    add-int/2addr v3, v4

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v11, v3}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_1
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->j:Ljava/util/Vector;

    invoke-virtual {v2, v4}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    const/high16 v3, -0x100

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->n:Ljava/util/Random;

    const v15, 0x77ffff

    invoke-virtual {v14, v15}, Ljava/util/Random;->nextInt(I)I

    move-result v14

    or-int/2addr v3, v14

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->n:Ljava/util/Random;

    move-object/from16 v0, p0

    invoke-direct {v0, v14, v10, v11, v8}, Lcom/xingbook/ui/overclass/KeywordsFlow;->a(Ljava/util/Random;Ljava/util/LinkedList;Ljava/util/LinkedList;I)[I

    move-result-object v14

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->n:Ljava/util/Random;

    const/16 v16, 0x7

    invoke-virtual/range {v15 .. v16}, Ljava/util/Random;->nextInt(I)I

    move-result v15

    add-int/lit8 v15, v15, 0xc

    new-instance v16, Landroid/widget/TextView;

    invoke-virtual/range {p0 .. p0}, Lcom/xingbook/ui/overclass/KeywordsFlow;->getContext()Landroid/content/Context;

    move-result-object v17

    invoke-direct/range {v16 .. v17}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->b:Landroid/view/View$OnClickListener;

    move-object/from16 v17, v0

    invoke-virtual/range {v16 .. v17}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setTextColor(I)V

    const/4 v3, 0x2

    int-to-float v15, v15

    move-object/from16 v0, v16

    invoke-virtual {v0, v3, v15}, Landroid/widget/TextView;->setTextSize(IF)V

    const/16 v3, 0x11

    move-object/from16 v0, v16

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setGravity(I)V

    invoke-virtual/range {v16 .. v16}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;

    move-result-object v15

    const/4 v3, 0x0

    :try_start_0
    invoke-virtual {v15, v2}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F

    move-result v2

    float-to-double v0, v2

    move-wide/from16 v17, v0

    invoke-static/range {v17 .. v18}, Ljava/lang/Math;->ceil(D)D
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-wide v2

    double-to-int v2, v2

    :goto_3
    const/4 v3, 0x2

    aput v2, v14, v3

    const/4 v3, 0x0

    aget v3, v14, v3

    add-int/2addr v3, v2

    move-object/from16 v0, p0

    iget v15, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->k:I

    shr-int/lit8 v17, v8, 0x1

    sub-int v15, v15, v17

    if-le v3, v15, :cond_3

    move-object/from16 v0, p0

    iget v3, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->k:I

    sub-int v2, v3, v2

    const/4 v3, 0x0

    sub-int/2addr v2, v8

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->n:Ljava/util/Random;

    shr-int/lit8 v17, v8, 0x1

    move/from16 v0, v17

    invoke-virtual {v15, v0}, Ljava/util/Random;->nextInt(I)I

    move-result v15

    add-int/2addr v2, v15

    aput v2, v14, v3

    :cond_2
    :goto_4
    const/4 v2, 0x3

    const/4 v3, 0x1

    aget v3, v14, v3

    sub-int/2addr v3, v6

    invoke-static {v3}, Ljava/lang/Math;->abs(I)I

    move-result v3

    aput v3, v14, v2

    move-object/from16 v0, v16

    invoke-virtual {v0, v14}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    const/4 v2, 0x1

    aget v2, v14, v2

    if-le v2, v6, :cond_4

    move-object/from16 v0, v16

    invoke-virtual {v13, v0}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    :goto_5
    add-int/lit8 v2, v4, 0x1

    move v4, v2

    goto/16 :goto_1

    :catch_0
    move-exception v2

    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    move v2, v3

    goto :goto_3

    :cond_3
    const/4 v2, 0x0

    aget v2, v14, v2

    if-nez v2, :cond_2

    const/4 v2, 0x0

    move-object/from16 v0, p0

    iget-object v3, v0, Lcom/xingbook/ui/overclass/KeywordsFlow;->n:Ljava/util/Random;

    invoke-virtual {v3, v8}, Ljava/util/Random;->nextInt(I)I

    move-result v3

    div-int/lit8 v15, v8, 0x3

    invoke-static {v3, v15}, Ljava/lang/Math;->max(II)I

    move-result v3

    aput v3, v14, v2

    goto :goto_4

    :cond_4
    move-object/from16 v0, v16

    invoke-virtual {v12, v0}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    goto :goto_5

    :cond_5
    const/4 v2, 0x0

    goto/16 :goto_2
.end method


# virtual methods
.method public a([IIII)Landroid/view/animation/AnimationSet;
    .locals 6

    const/4 v3, 0x2

    const/4 v2, 0x0

    const/4 v5, 0x1

    const/4 v4, 0x0

    new-instance v0, Landroid/view/animation/AnimationSet;

    invoke-direct {v0, v5}, Landroid/view/animation/AnimationSet;-><init>(Z)V

    sget-object v1, Lcom/xingbook/ui/overclass/KeywordsFlow;->c:Landroid/view/animation/Interpolator;

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->setInterpolator(Landroid/view/animation/Interpolator;)V

    if-ne p4, v5, :cond_1

    sget-object v1, Lcom/xingbook/ui/overclass/KeywordsFlow;->d:Landroid/view/animation/AlphaAnimation;

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    sget-object v1, Lcom/xingbook/ui/overclass/KeywordsFlow;->f:Landroid/view/animation/ScaleAnimation;

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    new-instance v1, Landroid/view/animation/TranslateAnimation;

    aget v2, p1, v2

    aget v3, p1, v3

    shr-int/lit8 v3, v3, 0x1

    add-int/2addr v2, v3

    sub-int/2addr v2, p2

    shl-int/lit8 v2, v2, 0x1

    int-to-float v2, v2

    aget v3, p1, v5

    sub-int/2addr v3, p3

    shl-int/lit8 v3, v3, 0x1

    int-to-float v3, v3

    invoke-direct {v1, v2, v4, v3, v4}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    :cond_0
    :goto_0
    iget-wide v1, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->q:J

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/AnimationSet;->setDuration(J)V

    return-object v0

    :cond_1
    if-ne p4, v3, :cond_2

    sget-object v1, Lcom/xingbook/ui/overclass/KeywordsFlow;->e:Landroid/view/animation/AlphaAnimation;

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    sget-object v1, Lcom/xingbook/ui/overclass/KeywordsFlow;->g:Landroid/view/animation/ScaleAnimation;

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    new-instance v1, Landroid/view/animation/TranslateAnimation;

    aget v2, p1, v2

    aget v3, p1, v3

    shr-int/lit8 v3, v3, 0x1

    add-int/2addr v2, v3

    sub-int/2addr v2, p2

    shl-int/lit8 v2, v2, 0x1

    int-to-float v2, v2

    aget v3, p1, v5

    sub-int/2addr v3, p3

    shl-int/lit8 v3, v3, 0x1

    int-to-float v3, v3

    invoke-direct {v1, v4, v2, v4, v3}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    goto :goto_0

    :cond_2
    const/4 v1, 0x4

    if-ne p4, v1, :cond_3

    sget-object v1, Lcom/xingbook/ui/overclass/KeywordsFlow;->e:Landroid/view/animation/AlphaAnimation;

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    sget-object v1, Lcom/xingbook/ui/overclass/KeywordsFlow;->i:Landroid/view/animation/ScaleAnimation;

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    new-instance v1, Landroid/view/animation/TranslateAnimation;

    aget v2, p1, v2

    neg-int v2, v2

    add-int/2addr v2, p2

    int-to-float v2, v2

    aget v3, p1, v5

    neg-int v3, v3

    add-int/2addr v3, p3

    int-to-float v3, v3

    invoke-direct {v1, v4, v2, v4, v3}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    goto :goto_0

    :cond_3
    const/4 v1, 0x3

    if-ne p4, v1, :cond_0

    sget-object v1, Lcom/xingbook/ui/overclass/KeywordsFlow;->d:Landroid/view/animation/AlphaAnimation;

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    sget-object v1, Lcom/xingbook/ui/overclass/KeywordsFlow;->h:Landroid/view/animation/ScaleAnimation;

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    new-instance v1, Landroid/view/animation/TranslateAnimation;

    aget v2, p1, v2

    neg-int v2, v2

    add-int/2addr v2, p2

    int-to-float v2, v2

    aget v3, p1, v5

    neg-int v3, v3

    add-int/2addr v3, p3

    int-to-float v3, v3

    invoke-direct {v1, v2, v4, v3, v4}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    invoke-virtual {v0, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    goto :goto_0
.end method

.method public getDuration()J
    .locals 2

    iget-wide v0, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->q:J

    return-wide v0
.end method

.method public getKeywords()Ljava/util/Vector;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->j:Ljava/util/Vector;

    return-object v0
.end method

.method public onGlobalLayout()V
    .locals 3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/KeywordsFlow;->getWidth()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/KeywordsFlow;->getHeight()I

    move-result v1

    iget v2, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->k:I

    if-ne v2, v0, :cond_0

    iget v2, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->l:I

    if-eq v2, v1, :cond_1

    :cond_0
    iput v0, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->k:I

    iput v1, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->l:I

    invoke-direct {p0}, Lcom/xingbook/ui/overclass/KeywordsFlow;->b()Z

    :cond_1
    return-void
.end method

.method public setDuration(J)V
    .locals 0

    iput-wide p1, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->q:J

    return-void
.end method

.method public setOnItemClickListener(Landroid/view/View$OnClickListener;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/overclass/KeywordsFlow;->b:Landroid/view/View$OnClickListener;

    return-void
.end method
